package cn.topcode.unicorn.utils.tree;

import java.io.Serializable;
import java.util.List;

public class TreeNode implements Serializable {

    private Long id;

    private Long parentId;

    private TreeEntity data;

    private List<TreeNode> childrens;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public TreeEntity getData() {
        return data;
    }

    public void setData(TreeEntity data) {
        this.data = data;
    }

    public List<TreeNode> getChildrens() {
        return childrens;
    }

    public void setChildrens(List<TreeNode> childrens) {
        this.childrens = childrens;
    }
}
